import request from '@/utils/request'

export function getListPage(params) {
    return request({
        url: '/marketing/earnChannel/pub/listPage',
        headers: {
        'Content-Type': 'application/json;charset=UTF-8',
        'pageNum': params.pageNum,
        'pageSize': params.pageSize
        },
        method: 'get',
        params:params
    })
}
export function delProinfo(params) {
    return request({
        url: '/marketing/earnChannel',
        headers: {
        'Content-Type': 'application/json;charset=UTF-8',
        },
        method: 'delete',
        data:params
    })
}
export function updataForm(data) {
    return request({
        url: '/marketing/earnChannel',
        headers: {
        'Content-Type': 'application/json;charset=UTF-8',
        },
        method: 'put',
        data
    })
}
export function createForm(data) {
    return request({
        url: '/marketing/earnChannel',
        headers: {
        'Content-Type': 'application/json;charset=UTF-8',
        },
        method: 'post',
        data
    })
}